const mongoose = require('mongoose');
const { mongoURI } = require('../config/keys');

// 连接 Mongodb数据库
mongoose
    .connect(mongoURI, { useNewUrlParser: true, useUnifiedTopology: true })
    .then(() => {
        console.log('Mongodb Connected ...');
    })
    .catch(err => {
        console.log(err);
    })